package kr.hkit.PowerJava.chapter12.Poly;

import kr.hkit.PowerJava.chapter12.RemoteControl;

public class AnonymousTest {
  public static void main(String[] args) {
	 RemoteControl rc = new RemoteControl() {
		
		@Override
		public void turrnOn() {
			System.out.println("켜짐 ");	
		}
		
		@Override
		public void turrnOff() {
			System.out.println("꺼짐 ");
			
		}
	};

  rc.turrnOn();
  rc.turrnOff();
  }
}
